package org.jeecg.modules.scm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 放款登记
 * @Author: jeecg-boot
 * @Date:   2021-12-01
 * @Version: V1.0
 */
@Data
@TableName("scm_loan")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="放款登记", description="放款登记")
public class ScmLoan implements Serializable {
    private static final long serialVersionUID = 1L;

	/**放款登记表ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "放款登记表ID")
    private String id;
    /**申请人*/
    @ApiModelProperty(value = "申请人")
    private String applyBy;
	/**申请大类*/
	@Excel(name = "申请大类", width = 15)
    @ApiModelProperty(value = "申请大类")
    private String mainClassify;
	/**申请小类*/
	@Excel(name = "申请小类", width = 15)
    @ApiModelProperty(value = "申请小类")
    @Dict(dicCode = "after_loan_secondary_classify")
    private String secondaryClassify;
	/**申请日期*/
	@Excel(name = "申请日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "申请日期")
    private Date applyTime;
	/**客户号*/
	@Excel(name = "客户号", width = 15)
    @ApiModelProperty(value = "客户号")
    private Integer cusNo;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String cusName;
	/**所属机构*/
	@Excel(name = "所属机构", width = 15)
    @ApiModelProperty(value = "所属机构")
    private String platformAffiliation;
	/**发生时间*/
	@Excel(name = "发生时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发生时间")
    private Date happenTime;
	/**事项类型*/
	@Excel(name = "事项类型", width = 15)
    @ApiModelProperty(value = "事项类型")
    @Dict(dicCode = "matter_type")
    private Integer matterType;
	/**事项编号*/
	@Excel(name = "事项编号", width = 15)
    @ApiModelProperty(value = "事项编号")
    private String matterId;
	/**事项描述*/
	@Excel(name = "事项描述", width = 15)
    @ApiModelProperty(value = "事项描述")
    private String matterDescribe;
	/**事项跟进到期日*/
	@Excel(name = "事项跟进到期日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "事项跟进到期日")
    private Date matterDueTime;
	/**跟进日期*/
	@Excel(name = "跟进日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "跟进日期")
    private Date followUpTime;
	/**跟进情况*/
	@Excel(name = "跟进情况", width = 15)
    @ApiModelProperty(value = "跟进情况")
    private String followUpSituation;
	/**事项完成标志*/
	@Excel(name = "事项完成标志", width = 15)
    @ApiModelProperty(value = "事项完成标志")
    @Dict(dicCode = "basic_mark")
    private Integer matterFinish;
	/**预警类型*/
	@Excel(name = "预警类型", width = 15)
    @ApiModelProperty(value = "预警类型")
    @Dict(dicCode = "warn_type")
    private Integer warnType;
	/**本息逾期类型*/
	@Excel(name = "本息逾期类型", width = 15)
    @ApiModelProperty(value = "本息逾期类型")
    @Dict(dicCode = "overdue_type")
    private Integer overdueType;
	/**业务品种*/
	@Excel(name = "业务品种", width = 15)
    @ApiModelProperty(value = "业务品种")
    private String businessType;
	/**币种*/
	@Excel(name = "币种", width = 15)
    @ApiModelProperty(value = "币种")
    private Integer currency;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    @Dict(dicCode = "fina_currency")
    private BigDecimal amount;
	/**业务到期日*/
	@Excel(name = "业务到期日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "业务到期日")
    private Date businessDueTime;
	/**催收函发送标志*/
	@Excel(name = "催收函发送标志", width = 15)
    @ApiModelProperty(value = "催收函发送标志")
    @Dict(dicCode = "basic_mark")
    private Integer urge;
	/**本息实际归还日期*/
	@Excel(name = "本息实际归还日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "本息实际归还日期")
    private Date returnTime;
	/**审批文件类型*/
	@Excel(name = "审批文件类型", width = 15)
    @ApiModelProperty(value = "审批文件类型")
    private Integer approvalDocumentType;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private String accessory;
	/**操作标识*/
	@Excel(name = "操作标识", width = 15)
    @ApiModelProperty(value = "操作标识")
    @Dict(dicCode = "after_loan_operate_type")
    private Integer operateType;
	/**最后修改人*/
    @ApiModelProperty(value = "最后修改人")
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
